Instructions for reproducing results from Reilly and Belk, ”Political” and ”Social” Discussion Network Survey Items are Not Interchangeable

To reproduce statistics and figures in main paper and appendix:

1. Create a working directory (folder) to house results.
2. Place the data set, "CCES20_NCF_OUTPUT_vv.sav" in the working folder.
3. Open "NSX Reproduce 1.0.do" and change line 11 to identify the working directory.
4. If not already installed, uncomment and use code lines 17 and line 20 to run and install the "mplotoffset" package and the "modern" graphics scheme.  Recomment lines when finished.
5. Run contents of .do file directly from do file window. Certain graphics may not generate properly if code is copy and pasted into the command prompt.  Figures output to working directory.

Code validated by authors on Stata 17.0/MP on Oct 4, 2022.

To reproduce statistics and figures in experimental reporting appendix:
1. Create a working directory (folder) to house results.
2. Place the data set, "CCES20_NCF_OUTPUT_vv.sav" in the working folder.
3. Open "NSX Balance Check 1.0.R" and change line 15 to identify the working directory.
4. If not already installed, install necessary packages from CRAN (tidyverse, haven, statip, stargazer)
5. Run contents of .R file. Figure outputs to working directory.

Code validated by authors on R 4.2.1 with most recent libraries as of Oct 4, 2022.


Included Files:
1. This readme
2. Code File: "NSX Reproduce 1.0.do"
3. Data File: "CCES20_NCF_OUTPUT_vv.sav"
4. Log File: "NSX Log (Unformatted).log"
5. Code File: "NSX Balance Check 1.0.R"